package com.wave.wavesystem.ai.pojo.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.keygen.KeyGenerators;
import lombok.Builder;
import lombok.Data;

@Data
@Table("ai_conversation_message")
@Builder
public class AiConversationMessage {

    @Id(keyType = KeyType.Generator, comment = "主键", value = KeyGenerators.snowFlakeId)
    private Long id;

    @Column(value = "conversationId", comment = "会话id")
    private String conversationId;

    @Column(value = "role", comment = "会话角色（user、assistant、system）")
    private String role;

    @Column(value = "messageOrder", comment = "消息自动排序")
    private Integer messageOrder;

    @Column(value = "content", comment = "消息内容")
    private String content;

    @Column(value = "createTime", comment = "消息创建时间")
    private String createTime;

}